<?php

/**
 * @package Nina
 * @author John Main <john@thedaddy.org>, Andrew Rose <rose.andrew@gmail.com>
 */
class Nina_Db_Driver_Dummy implements Nina_Db_Driver
{
	public function __construct(Nina_Registry $reg = null) {
		return TRUE;
	}

	public function connect() {
		return TRUE;
	}

	public function begin() {
		return TRUE;
	}
	
	public function prepare($sql) {
		return new Nina_Db_Adaptor_Statement_Dummy();
	}

	public function commit() {
		return TRUE;
	}

	public function rollback() {
		return TRUE;
	}
	
	public function getFields($table) {
		return array()
	}

	public function query($query) {
		return new Nina_Db_Adaptor_Result_Dummy();
	}
	
	public function insertId() {
		return TRUE;
	}
	
	public function escape($data) {
		return $data;
	}
	
	public function lastError() {
		return "";
	}
	public function close(){}
	public function ping(){}
}
